import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import App from './index.vue'
import VueRouter from 'vue-router'
import axios from 'axios'

// axios.get('/api/users/list').then(function(r){
// 	console.log(r);
// }).catch(function(error){
// 		console.log(error);
// 	});

Vue.use(VueRouter)
Vue.use(ElementUI)

const router = new VueRouter({
	mode:'history',
	routes:[
	{
		path:'/',
		component: (r) => require(['./App.vue'],r)

	},
	{
		path:'/newOne',
		component: (r) => require(['./newOne.vue'],r)
	},
	{
		path:'/newTwo',
		component: (r) => require(['./newTwo.vue'],r)

	},
	{
		path:'/newThree',
		component: (r) => require(['./newThree.vue'],r)

	},
	{
		path:'/newFour',
		component: (r) => require(['./newFour.vue'],r)
	},
	{
		path:'/newFive',
		component: (r) => require(['./newFive.vue'],r)
	},
	{
		path:'/newSix',
		component: (r) => require(['./newSix.vue'],r)

	},
	{
		path:'/newSeven',
		component: (r) => require(['./newSeven.vue'],r)
	},
	{
		path:'/newEight',
		component: (r) => require(['./newEight.vue'],r)
	},
	{
		path:"/login",
		component: (r) => require(['./login.vue'],r)

	},
	{
		path:"/home",
		component: (r) => require(['./new.vue'],r)
	}
	 ]
	

});


new Vue({
  el: '#app',
  router:router,
  render: h => h(App)
})
